Démarrer exercice…

Valider

Question suivante…

\mbox{réponse :}

BRAVO!

accueil = true
l_apositif = Sequence(i, i, 1, 10)
l_xpossible = Sequence(i, i, -8, 8)
l_anégatif = Sequence(i, i, -10, -1)
abs_xA = RandomElement(l_xpossible)
ChampTexte1 = Textfield(txt_prop)
prop = NaN
score = 0
essais = 5
juste = false
max: 5
stop = true
texte3: "\mbox{Score : }" + (LaTeX[score]) + " / " + (LaTeX[essais]) + ""
corriger = true
grade: score
l_ypossible = Sequence(i, i, -8, 8)
ordon_yA = RandomElement(l_ypossible)
A: (abs_xA, ordon_yA)
f = OrthogonalLine(A, xAxis)
M = Intersect(f, xAxis)
g = OrthogonalLine(A, yAxis)
N = Intersect(g, yAxis)
h = Segment(A, M)
i = Segment(A, N)
abs_xB = RandomElement(l_xpossible)
ordon_yB = RandomElement(l_ypossible)
B: (abs_xB, ordon_yB)
AB = Vector(A, B)
test_x = false
test_y = false
test: test_x + test_y
AB_x: abs_xB - abs_xA
AB_y: ordon_yB - ordon_yA
txt_enonce: "QUESTION: \\
\mbox{Quelle est la norme du\\ vecteur \overrightarrow{AB}\binom{" + (LaTeX[AB_x]) + "}{" + (LaTeX[AB_y]) + "} ci-contre? "
rep: sqrt(AB_x^(2) + AB_y^(2))
texte2: " \mbox{Ma réponse est:\left\Vert\overrightarrow{AB}\right\Vert=" + (LaTeX[prop]) + ""
repround: round(rep, 2)
AB_xcarre: AB_x^(2)
AB_ycarre: AB_y^(2)
texte4: "FAUX!\\\left\Vert\overrightarrow{AB}\right\Vert=\sqrt{x^{2}+y^{2}}\\
\left\Vert\overrightarrow{AB}\right\Vert=\sqrt{(" + (LaTeX[AB_x]) + ")^{2}+(" + (LaTeX[AB_y]) + ")^{2}}\\
\left\Vert\overrightarrow{AB}\right\Vert=\sqrt{" + (LaTeX[AB_xcarre]) + "+" + (LaTeX[AB_ycarre]) + "}=" + (LaTeX[rep]) + ""